<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CUnitTime类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="class_c_unit_time-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CUnitTime类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>时间单位类 以毫秒为单位的一个时间度量  
 <a href="class_c_unit_time.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_time_8h_source.html">Time.h</a>&gt;</code></p>
<div class="dynheader">
类 CUnitTime 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_c_unit_time.png" usemap="#CUnitTime_map" alt=""/>
  <map id="CUnitTime_map" name="CUnitTime_map">
<area href="class_c_time_base.html" title="时间基类" alt="CTimeBase" shape="rect" coords="0,0,75,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a396f60f5ce8aefffbc42b1a932aad98e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_unit_time.html#a396f60f5ce8aefffbc42b1a932aad98e">CUnitTime</a> ()</td></tr>
<tr class="memdesc:a396f60f5ce8aefffbc42b1a932aad98e"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数会初始化度量为0  <a href="class_c_unit_time.html#a396f60f5ce8aefffbc42b1a932aad98e">更多...</a><br /></td></tr>
<tr class="separator:a396f60f5ce8aefffbc42b1a932aad98e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeca5aee2bbbf76bc3a9cefd814abee4a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_unit_time.html#aeca5aee2bbbf76bc3a9cefd814abee4a">CUnitTime</a> (<a class="el" href="_time_8h.html#ace04e42edcaa8586d6e07a7a86fbc522">TIME_T</a> t64)</td></tr>
<tr class="separator:aeca5aee2bbbf76bc3a9cefd814abee4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7eddfe77e1fc3a249445baa7b751103"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_time_base.html#a045344374dbd744e3bc839b31d552b73">TimeType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_unit_time.html#ac7eddfe77e1fc3a249445baa7b751103">GetType</a> () const</td></tr>
<tr class="memdesc:ac7eddfe77e1fc3a249445baa7b751103"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回时间类型  <a href="class_c_unit_time.html#ac7eddfe77e1fc3a249445baa7b751103">更多...</a><br /></td></tr>
<tr class="separator:ac7eddfe77e1fc3a249445baa7b751103"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89f17f5dc6a88e9ce04e1e185b4e3a3d"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_time_8h.html#ace04e42edcaa8586d6e07a7a86fbc522">TIME_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_unit_time.html#a89f17f5dc6a88e9ce04e1e185b4e3a3d">GetTime</a> () const</td></tr>
<tr class="memdesc:a89f17f5dc6a88e9ce04e1e185b4e3a3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回整型时间,以单位毫秒的一个时间度量  <a href="class_c_unit_time.html#a89f17f5dc6a88e9ce04e1e185b4e3a3d">更多...</a><br /></td></tr>
<tr class="separator:a89f17f5dc6a88e9ce04e1e185b4e3a3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d1dda71f5b6b794f9c820c5bbdb6460"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_unit_time.html#a3d1dda71f5b6b794f9c820c5bbdb6460">SetTime</a> (<a class="el" href="_time_8h.html#ace04e42edcaa8586d6e07a7a86fbc522">TIME_T</a> t64)</td></tr>
<tr class="memdesc:a3d1dda71f5b6b794f9c820c5bbdb6460"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置时间,以单位毫秒的一个时间度量  <a href="class_c_unit_time.html#a3d1dda71f5b6b794f9c820c5bbdb6460">更多...</a><br /></td></tr>
<tr class="separator:a3d1dda71f5b6b794f9c820c5bbdb6460"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_c_time_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_c_time_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_c_time_base.html">CTimeBase</a></td></tr>
<tr class="memitem:ae8e718574ad7db89751f71b4a05dfcda inherit pub_methods_class_c_time_base"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_time_base.html#ae8e718574ad7db89751f71b4a05dfcda">~CTimeBase</a> ()</td></tr>
<tr class="separator:ae8e718574ad7db89751f71b4a05dfcda inherit pub_methods_class_c_time_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5461858b09ce81fab206fa7d5dd784c inherit pub_methods_class_c_time_base"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_time_base.html#af5461858b09ce81fab206fa7d5dd784c">operator&lt;</a> (const <a class="el" href="class_c_time_base.html">CTimeBase</a> &amp;Time) const</td></tr>
<tr class="separator:af5461858b09ce81fab206fa7d5dd784c inherit pub_methods_class_c_time_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a623d4766d1a4a0d81562ce4605d3d833 inherit pub_methods_class_c_time_base"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_time_base.html#a623d4766d1a4a0d81562ce4605d3d833">operator&gt;</a> (const <a class="el" href="class_c_time_base.html">CTimeBase</a> &amp;Time) const</td></tr>
<tr class="separator:a623d4766d1a4a0d81562ce4605d3d833 inherit pub_methods_class_c_time_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2724950dd992ecc215539bba539f4bd4 inherit pub_methods_class_c_time_base"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_time_base.html#a2724950dd992ecc215539bba539f4bd4">operator&lt;=</a> (const <a class="el" href="class_c_time_base.html">CTimeBase</a> &amp;Time) const</td></tr>
<tr class="separator:a2724950dd992ecc215539bba539f4bd4 inherit pub_methods_class_c_time_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a194f20d2c1b9d0bb2fb56c0b85e3abd1 inherit pub_methods_class_c_time_base"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_time_base.html#a194f20d2c1b9d0bb2fb56c0b85e3abd1">operator&gt;=</a> (const <a class="el" href="class_c_time_base.html">CTimeBase</a> &amp;Time) const</td></tr>
<tr class="separator:a194f20d2c1b9d0bb2fb56c0b85e3abd1 inherit pub_methods_class_c_time_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a609cdaf67a088202e5c82cf0d263355c inherit pub_methods_class_c_time_base"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_time_base.html#a609cdaf67a088202e5c82cf0d263355c">operator==</a> (const <a class="el" href="class_c_time_base.html">CTimeBase</a> &amp;Time) const</td></tr>
<tr class="separator:a609cdaf67a088202e5c82cf0d263355c inherit pub_methods_class_c_time_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa7f97bd1c0864b141231c20c579479c inherit pub_methods_class_c_time_base"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_time_8h.html#ace04e42edcaa8586d6e07a7a86fbc522">TIME_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_time_base.html#afa7f97bd1c0864b141231c20c579479c">operator-</a> (const <a class="el" href="class_c_time_base.html">CTimeBase</a> &amp;Time) const</td></tr>
<tr class="separator:afa7f97bd1c0864b141231c20c579479c inherit pub_methods_class_c_time_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b695aa93d571fe7f0cdfa19b5465e0b inherit pub_methods_class_c_time_base"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_time_8h.html#ace04e42edcaa8586d6e07a7a86fbc522">TIME_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_time_base.html#a3b695aa93d571fe7f0cdfa19b5465e0b">operator+</a> (const <a class="el" href="class_c_time_base.html">CTimeBase</a> &amp;Time) const</td></tr>
<tr class="separator:a3b695aa93d571fe7f0cdfa19b5465e0b inherit pub_methods_class_c_time_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a60983a7d989c54ffab6a5beb10196b86"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_time_8h.html#ace04e42edcaa8586d6e07a7a86fbc522">TIME_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_unit_time.html#a60983a7d989c54ffab6a5beb10196b86">_u64Time</a></td></tr>
<tr class="separator:a60983a7d989c54ffab6a5beb10196b86"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_types_class_c_time_base"><td colspan="2" onclick="javascript:toggleInherit('pub_types_class_c_time_base')"><img src="closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="class_c_time_base.html">CTimeBase</a></td></tr>
<tr class="memitem:a045344374dbd744e3bc839b31d552b73 inherit pub_types_class_c_time_base"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_time_base.html#a045344374dbd744e3bc839b31d552b73">TimeType</a> { <a class="el" href="class_c_time_base.html#a045344374dbd744e3bc839b31d552b73a9e6af1eb7377cc41cd74c7abd6807bd6">real_time</a>, 
<a class="el" href="class_c_time_base.html#a045344374dbd744e3bc839b31d552b73ab4ca480006077aa183b9d7602b295a46">machine_time</a>, 
<a class="el" href="class_c_time_base.html#a045344374dbd744e3bc839b31d552b73ae171ad68ea7b9ce8c876387c36b73ee8">unit_time</a>
 }</td></tr>
<tr class="separator:a045344374dbd744e3bc839b31d552b73 inherit pub_types_class_c_time_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>时间单位类 以毫秒为单位的一个时间度量 </p>

<p class="definition">在文件 <a class="el" href="_time_8h_source.html">Time.h</a> 第 <a class="el" href="_time_8h_source.html#l00170">170</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a396f60f5ce8aefffbc42b1a932aad98e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a396f60f5ce8aefffbc42b1a932aad98e">&#9670;&nbsp;</a></span>CUnitTime() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CUnitTime::CUnitTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造函数会初始化度量为0 </p>

<p class="definition">在文件 <a class="el" href="_time_8cpp_source.html">Time.cpp</a> 第 <a class="el" href="_time_8cpp_source.html#l00263">263</a> 行定义.</p>

</div>
</div>
<a id="aeca5aee2bbbf76bc3a9cefd814abee4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeca5aee2bbbf76bc3a9cefd814abee4a">&#9670;&nbsp;</a></span>CUnitTime() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CUnitTime::CUnitTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_time_8h.html#ace04e42edcaa8586d6e07a7a86fbc522">TIME_T</a>&#160;</td>
          <td class="paramname"><em>t64</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_time_8cpp_source.html">Time.cpp</a> 第 <a class="el" href="_time_8cpp_source.html#l00268">268</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a89f17f5dc6a88e9ce04e1e185b4e3a3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89f17f5dc6a88e9ce04e1e185b4e3a3d">&#9670;&nbsp;</a></span>GetTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_time_8h.html#ace04e42edcaa8586d6e07a7a86fbc522">TIME_T</a> CUnitTime::GetTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回整型时间,以单位毫秒的一个时间度量 </p>

<p>实现了 <a class="el" href="class_c_time_base.html#a6667eccaa267178c72d64406484e5aff">CTimeBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_time_8cpp_source.html">Time.cpp</a> 第 <a class="el" href="_time_8cpp_source.html#l00278">278</a> 行定义.</p>

</div>
</div>
<a id="ac7eddfe77e1fc3a249445baa7b751103"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7eddfe77e1fc3a249445baa7b751103">&#9670;&nbsp;</a></span>GetType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_time_base.html#a045344374dbd744e3bc839b31d552b73">CTimeBase::TimeType</a> CUnitTime::GetType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>返回时间类型 </p>

<p>实现了 <a class="el" href="class_c_time_base.html#a7212bf7d0361a0136644701c1a562ce1">CTimeBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_time_8cpp_source.html">Time.cpp</a> 第 <a class="el" href="_time_8cpp_source.html#l00283">283</a> 行定义.</p>

</div>
</div>
<a id="a3d1dda71f5b6b794f9c820c5bbdb6460"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d1dda71f5b6b794f9c820c5bbdb6460">&#9670;&nbsp;</a></span>SetTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUnitTime::SetTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_time_8h.html#ace04e42edcaa8586d6e07a7a86fbc522">TIME_T</a>&#160;</td>
          <td class="paramname"><em>t64</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置时间,以单位毫秒的一个时间度量 </p>

<p>实现了 <a class="el" href="class_c_time_base.html#a5421e3f57c65d50745c25ed381f86c58">CTimeBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_time_8cpp_source.html">Time.cpp</a> 第 <a class="el" href="_time_8cpp_source.html#l00273">273</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a60983a7d989c54ffab6a5beb10196b86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60983a7d989c54ffab6a5beb10196b86">&#9670;&nbsp;</a></span>_u64Time</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="_time_8h.html#ace04e42edcaa8586d6e07a7a86fbc522">TIME_T</a> CUnitTime::_u64Time</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_time_8h_source.html">Time.h</a> 第 <a class="el" href="_time_8h_source.html#l00183">183</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/time/<a class="el" href="_time_8h_source.html">Time.h</a></li>
<li>H:/project/LibTools/src/time/<a class="el" href="_time_8cpp_source.html">Time.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
